package com.geekbing.elklog.util.response;

public class Result {
    private ResultCode code;
    private String message;
    private Object data;

    public static Result build() {
        return new Result();
    }

    public ResultCode getCode() {
        return code;
    }

    public Result setCode(ResultCode code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public Result setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getData() {
        return data;
    }

    public Result setData(Object data) {
        this.data = data;
        return this;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
